﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace ResxLocalizationEditor.CommonPanel {
    public class WizardForm : Form {

        protected void SwitchPanel(Control oldPanel, Control newPanel) {
            this.SuspendLayout();

            oldPanel.Hide();
            this.Controls.Remove(oldPanel);

            //newPanel.Padding = new Padding(8);
            newPanel.Dock = DockStyle.Fill;
            this.Controls.Add(newPanel);
            newPanel.Show();

            this.ResumeLayout(true);
        }

    }
}
